/*
 * Programmer	:	Baljeet Singh
 * Project	 	:  	Travel Experts Phase 3 (Home Page)
 * Language  	:  	Java
 * Date Written	:   March 13, 2011.
 * Student Id	:	562632	
 */
import java.awt.Dimension;
import java.awt.Graphics;
import java.awt.Image;
import java.awt.Toolkit;

import javax.swing.ImageIcon;
import javax.swing.WindowConstants;
import javax.swing.JFrame;
import javax.swing.JLabel;

/**
* This code was edited or generated using CloudGarden's Jigloo
* SWT/Swing GUI Builder, which is free for non-commercial
* use. If Jigloo is being used commercially (ie, by a corporation,
* company or business for any purpose whatever) then you
* should purchase a license for each developer using Jigloo.
* Please visit www.cloudgarden.com for details.
* Use of Jigloo implies acceptance of these licensing terms.
* A COMMERCIAL LICENSE HAS NOT BEEN PURCHASED FOR
* THIS MACHINE, SO JIGLOO OR THIS CODE CANNOT BE USED
* LEGALLY FOR ANY CORPORATE OR COMMERCIAL PURPOSE.
*/
public class HomePanel extends javax.swing.JPanel {
	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	
	//Variables declared below
	private JLabel jLabel1;
	Image img;
	private JLabel jLabel2;
	private JLabel jLabel3;

	/**
	* Auto-generated main method to display this 
	* JPanel inside a new JFrame.
	*/
	public static void main(String[] args) 
	{
		JFrame frame = new JFrame();
		frame.getContentPane().add(new HomePanel());
		frame.setDefaultCloseOperation(WindowConstants.DISPOSE_ON_CLOSE);
		frame.pack();
		frame.setVisible(true);
	}
	
	public HomePanel() 
	{
		super();
		initGUI();
	}
	
	//Code to draw the Home page GUI
	private void initGUI() 
	{
		try 
		{
			setPreferredSize(new Dimension(999, 658));
			this.setLayout(null);
			{
				jLabel1 = new JLabel();
				this.add(jLabel1);
				jLabel1.setText("Travel Experts Management System");
				jLabel1.setBounds(79, 14, 827, 62);
				jLabel1.setForeground(new java.awt.Color(255,0,0));
				jLabel1.setFont(new java.awt.Font("Segoe UI",3,48));
				

			}
			{
				//code that displays the image on the home page
				ImageIcon icon = new ImageIcon(this.getClass().getResource("/images/background2.jpg"));
				jLabel2 = new JLabel("",icon,JLabel.CENTER);
				this.add(jLabel2);
				jLabel2.setBounds(158, 82, 637, 447);
				
			}
			{
				jLabel3 = new JLabel();
				this.add(jLabel3);
				jLabel3.setText("..........Go to GREAT PLACES with our GREAT SERVICES.............");
				jLabel3.setBounds(247, 526, 445, 16);
				jLabel3.setFont(new java.awt.Font("Segoe UI",2,18));
				jLabel3.setForeground(new java.awt.Color(128,0,255));
			}
		} 
		catch (Exception e) 
		{
			e.printStackTrace();
		}
	}

}
